<T:ViewBase x:Class="WPFExcelReport.TICC_GB110902"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABAID:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.ABAID}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TERMNO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.TERMNO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PROCESSED:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.PROCESSED}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=NEWDATE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.NEWDATE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=NEWTIME:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.NEWTIME}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=NEWUSER:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.NEWUSER}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=CHGDATE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.CHGDATE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=CHGTIME:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.CHGTIME}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=CHGUSER:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.CHGUSER}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GLMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.GLMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=GPSPPART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_GB1109.GPSPPART}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsICC_GB1109,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwICC_GB1109}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwICC_GB1109, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="ABAID"
                                    Binding="{Binding Path=ABAID, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABAID}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TERMNO"
                                    Binding="{Binding Path=TERMNO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TERMNO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PROCESSED"
                                    Binding="{Binding Path=PROCESSED, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PROCESSED}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="NEWDATE"
                                    Binding="{Binding Path=NEWDATE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=NEWDATE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="NEWTIME"
                                    Binding="{Binding Path=NEWTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=NEWTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="NEWUSER"
                                    Binding="{Binding Path=NEWUSER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=NEWUSER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CHGDATE"
                                    Binding="{Binding Path=CHGDATE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CHGDATE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CHGTIME"
                                    Binding="{Binding Path=CHGTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CHGTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CHGUSER"
                                    Binding="{Binding Path=CHGUSER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CHGUSER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLMANDANT"
                                    Binding="{Binding Path=GLMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPSPPART"
                                    Binding="{Binding Path=GPSPPART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPSPPART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPFBPART"
                                    Binding="{Binding Path=GPFBPART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPFBPART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPZWPART"
                                    Binding="{Binding Path=GPZWPART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPZWPART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLPARTIE"
                                    Binding="{Binding Path=GLPARTIE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLPARTIE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLPARTIEKZ"
                                    Binding="{Binding Path=GLPARTIEKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLPARTIEKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPGART"
                                    Binding="{Binding Path=GPGART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPGART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPGVAR"
                                    Binding="{Binding Path=GPGVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPGVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GPGFARBE"
                                    Binding="{Binding Path=GPGFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GPGFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLLBEH"
                                    Binding="{Binding Path=GLLBEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLLBEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLLBEHI"
                                    Binding="{Binding Path=GLLBEHI, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLLBEHI}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLBSTNET"
                                    Binding="{Binding Path=GLBSTNET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLBSTNET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLBSTKG"
                                    Binding="{Binding Path=GLBSTKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLBSTKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLKOND"
                                    Binding="{Binding Path=GLKOND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLKOND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLBSTKA"
                                    Binding="{Binding Path=GLBSTKA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLBSTKA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLBSTSP"
                                    Binding="{Binding Path=GLBSTSP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLBSTSP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TARGETQTY"
                                    Binding="{Binding Path=TARGETQTY, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TARGETQTY}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLLO"
                                    Binding="{Binding Path=GLLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLLB"
                                    Binding="{Binding Path=GLLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="GLLP"
                                    Binding="{Binding Path=GLLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=GLLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CPLO"
                                    Binding="{Binding Path=CPLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CPLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CPLB"
                                    Binding="{Binding Path=CPLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CPLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CPLP"
                                    Binding="{Binding Path=CPLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CPLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP01"
                                    Binding="{Binding Path=JP01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP02"
                                    Binding="{Binding Path=JP02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP03"
                                    Binding="{Binding Path=JP03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP04"
                                    Binding="{Binding Path=JP04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP05"
                                    Binding="{Binding Path=JP05, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP05}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP06"
                                    Binding="{Binding Path=JP06, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP06}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP07"
                                    Binding="{Binding Path=JP07, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP07}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP08"
                                    Binding="{Binding Path=JP08, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP08}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP09"
                                    Binding="{Binding Path=JP09, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP09}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="JP10"
                                    Binding="{Binding Path=JP10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=JP10}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
